package com.example.demo2.common.check;

public class ICheck extends Check {
    public static final ICheck badRequest = CheckError(400);
    public static final ICheck unauthorized = CheckError(401);
    public static final ICheck forbidden = CheckError(403);
    public static final ICheck notFound = CheckError(404);
    public static final ICheck unprocessableEntity = CheckError(422);
    public static final ICheck internalServerError = CheckError(500);
    public static final ICheck notImplemented = CheckError(501);

    private static ICheck CheckError(int code) {
        return new ICheck(code);
    }

    protected ICheck(int code) {
        super(code);
    }
}
